cmake_minimum_required(VERSION 2.8)

set(APPNAME keyboard)

project(${APPNAME})

find_package(catkin REQUIRED COMPONENTS
    roscpp
    std_msgs
    message_generation
)

catkin_package(
  CATKIN_DEPENDS roscpp std_msgs message_runtime
)

SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -pthread -g -Wl,-rpath=./lib")

aux_source_directory(. DIRSRCS)

include_directories(
    ${catkin_INCLUDE_DIRS}
)

add_executable(${APPNAME} 
  ${DIRSRCS}
  ) 
target_link_libraries(${APPNAME} ${catkin_LIBRARIES})